home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1987 January
/
Ahoy_Magazine_87-01_1987_Double_L.d64
/
Sentence Disas.
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
469b
|
18 lines
0 rem << cd37-2 >>
1 rem commodares problem #33-2:
2 print"[147] sentence disassembler"
3 rem solution by
4 rem j.v. henry
5 rem
10 input"[147]a phrase or sentence";s$
20 l=len(s$) : h$=""
30 for i=1 to l : h1$=mid$(s$,i,1)
40 if h1$<>" " then h$=h$+h1$
50 if h1$=" " or i=l then j=i : i=l
60 next
70 if len(h$)>0 then print h$;tab(25)len(h$) : le=le + len(h$)
80 s$=right$(s$,l-j) : if l-j>0 then 20
90 print tab(25);"[163][163]" : rem commodore-t
100 le$=str$(le) : l2=len(le$)
110 print chr$(34)+"total characters"+chr$(34)+" =" ;tab(27-l2);le